;(function($){
	$.DwrUtils = $.DwrUtils || {};
	$.extend($.DwrUtils,{
		dwrOption : {
			timeout:180000,
			httpMethod:'POST',
			async:true,
			callback:function(result){
				
			},
			errorHandler:function(message){
				$.ui.dialog4Error(i18n.message.error,message);
			},
			warningHandler:function(message){
				$.ui.dialog4Warning(i18n.message.warning,message);
			},
			textHtmlHandler:function(message){
				$.ui.dialog4Info('Info',message);
			},
			exceptionHandler:function(message){
				$.ui.dialog4Warning(i18n.message.exception,message);
			},
			preHook:function(){
				//alert('远程调用之前.....')
			},
			postHook:function(){
				//alert('远程调用之后.....')
			}
		},
		proDwrArguments : function(dwrArguments){
			var dwrArgumentsStr = "";
			$(dwrArguments).each(function (ind,elm){
				dwrArgumentsStr += $.objToJSONString(elm);
				if(ind < dwrArguments.length-1){
					dwrArgumentsStr += ",";
				}
			})
			return dwrArgumentsStr;
		},
		proDwrOption : function(dwrOption){			
			return $.extend({},$.dwrOption,dwrOption);
		}
	});
})(jQuery);